/**
 * When Stopper is >= 2 there are no more pages or links being processed or
 * in the queues
 */
public class Stopper
{

  private boolean parserWaiting;

  private boolean retrieverWaiting;

  public Stopper()
  {
    parserWaiting = false;
    retrieverWaiting = false;
  }

  public synchronized boolean getParserWaiting()
  {
    return parserWaiting;
  }

  public synchronized boolean getRetrieverWaiting()
  {
    return retrieverWaiting;
  }

  public synchronized void setParserWaiting(boolean Waiting)
  {
    parserWaiting = Waiting;
  }

  public synchronized void setRetrieverWaiting(boolean Waiting)
  {
    retrieverWaiting = Waiting;
  }
}
